<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:replace="base :: head(~{::title}, ~{::link}, ~{::script})">
	<title th:text="#{app.name}">选择医保平台</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<script type="text/javascript" th:src="@{/common/jedate/jedate.js}"></script>
	<script type="text/javascript" th:src="@{/common/flowbite/flowbite.min.js}" ></script>
	<script type="text/javascript" th:src="@{/common/jquery/1.12.4/jquery.min.js}"></script>
	<script type="text/javascript" th:src="@{/common/jquery/jquery.extend.js}"></script>
	<script type="text/javascript" th:src="@{/common/jsvalidate/Validate.js}"></script>
	<script type="text/javascript" th:src="@{/js/area.js}"></script>

</head>
<style>
	.follow.btn, .followed.btn {
		color: #bb3d03;
	}
	.follow.btn i, .followed.btn i {
		font-size: 22px !important;
	}
</style>


<body class="ht">
<div th:replace="base :: loading"></div>
<div class="tabTitle"><span><i class="mdi mdi-menu-up"></i>查看医保定点机构</span></div>
<div class="content-wrapper">
	<div class="breadCrumb">
		<i class="mdi mdi-map-marker"></i>
		<span>医保贷业务系统<i class="mdi mdi-chevron-double-right"></i>查看医保定点机构</span>
	</div>
	<form class="searchForm" id="searchForm" method="post">
		<div class="card mb-3">
			<div class="card-body">
				<h4 class="card-title">按条件查询医保定点机构</h4>
				<div class="module searchModule" th:object="${vo}">
					<ul class="mb-3">
						<li>
							<label>医保区划</label>
							<span><input type="text" th:value="${dto.bizArea}" name="bizArea" id="bizArea" /></span>
						</li>
						
						<li>
							<label>数据来源</label>
							<span><input type="text" th:value="${dto.source}" name="source" id="source" /></span>
						</li>
						
						<li>
							<label>医保定点机构名称</label>
							<span><input type="text" th:value="${dto.orgName}" name="orgName" id="orgName" /></span>
						</li>
						<li>
							<label>统一社会信用代码</label>
							<span><input type="text" th:value="${dto.orgCode}" name="orgCode" id="orgCode" /></span>
						</li>
						<li>
							<label>医疗机构类别</label>
							<span><input type="text" th:value="${dto.orgType}" name="orgType" id="orgType"/></span>
						</li>
						<li>
							<label>机构级别</label>
							<span><input type="text" th:value="${dto.orgClass}" name="orgClass" id="orgClass"/></span>
						</li>
						<li>
							<label>地址</label>
							<span><input type="text" th:value="${dto.orgAddr}" name="orgAddr" id="orgAddr" /></span>
						</li>
						<!-- <li>
							<label>机构等次</label>
							<span><input type="text" th:value="${dto.orgGrade}" name="orgGrade" id="orgGrade"/></span>
						</li> -->
						<li>
							<label>是否关注</label>
							<select name="isAttention">
								<option value="">全部</option>
								<option value="1" th:selected="${dto.isAttention eq '1'}" >是</option>
								<option value="0" th:selected="${dto.isAttention eq '0'}" >否</option>
							</select>
						</li>
					</ul>
					<div class="searchBtnContainer">
						<input class="btn btn-primary" type="submit" id="search" value="查询">
						<input class="btn btn-clear" type="clear" role="ClearButton" value="清空">
					</div>
				</div>
			</div>
		</div>
	</form>
	<form class="listForm" id="listForm"  method="post">
		<div class="card mb-3">
			<div class="card-body">
				<h4 class="card-title">医保定点机构列表</h4>
				<div class="module">
					<div class="hTableContainer">
						<table cellpadding="0" cellspacing="0" class="hTable" style="min-width:1400px;">
							<thead>
							<tr>

								<th>序号</th>
								<th>数据来源</th>
								<th style="width: 160px;">医保区划</th>
								<th style="width: 160px;">医保定点机构名称</th>
								<th>统一社会信用代码</th>
								<th style="width: 160px;">医疗机构类别</th>
								<th style="width: 160px;">地址</th>
								<th style="width: 80px;">机构级别</th>
								<!-- <th style="width: 80px;">机构等次</th> -->
								<th style="width: 80px;">重点关注</th>
								<th style="width: 140px;">操作</th>
							</tr>
							</thead>
							<tbody>
							<tr th:each="li,item:${vo.page.list}">
								<td th:text="${item.index+vo.page.startRow}"></td>
								<td th:text="${@util.fStr(li.source)}"></td>
								<td th:text="${@util.fStr(li.bizArea)}"></td>
								<td th:text="${@util.fStr(li.orgName)}"></td>
								<td th:text="${@util.fStr(li.orgCode)}"></td>
								<td th:text="${@util.fStr(li.ybjOrgType)}"></td>
								<td th:text="${@util.fStr(li.address)}"></td>
								<td th:text="${@util.fStr(li.ybjOrgClass)}"></td>
								<!-- <td th:text="${@util.fStr(li.orgGrade)}"></td> -->
								<td>
									<!-- <a class="btn btn-outline-primary btn-sm follow" target="bridge" th:href="@{'/bank/hospital/attention?id='+${li.id}}"  th:text="${li.attFlag}" >关注</a> -->
									<a class="follow btn" target="bridge" th:href="@{'/bank/hospital/attention?id='+${li.id}}" >
										<i th:if="${li.attFlag == '1'}" class="mdi mdi-star" title="已关注" ></i>
										<i th:if="not ${li.attFlag == '1'}"  class="mdi mdi-star-outline" title="未关注"></i>
									</a>
									<!--<a class="followed btn" target="bridge"><i class="mdi mdi-star"></i></a>-->
								</td>
								<td>
									<a th:if="*{li.orgId == null}" class="btn btn-outline-primary btn-sm" onClick="javascript:alert('该机构尚未注册中征平台');">查看</a>
									<a th:if="*{li.orgId != null}" class="btn btn-outline-primary btn-sm" role="openFrameWindow" th:href="@{'/base/hospital/detail?id='+${li.id}+'&aid='+${li.aid}}">查看</a>
									<!-- <a class="btn btn-outline-primary btn-sm" target="bridge" th:if="${li.contactMobile!=null}"  th:href="@{'/bank/hospital/invite?id='+${li.id}}">邀约</a>
									<a class="disabled btn btn-outline-primary btn-sm" th:if="${li.contactMobile==null}" >邀约</a> -->
								</td>
							</tr>
							</tbody>
						</table>
						<div class="noneRecord" th:if="${vo.page.total==0}" style="min-width:1400px;">查无记录！</div>
					</div>
					<th:block th:include ="commHeaderInclude::pageInfoComm"> </th:block>
				</div>
			</div>
		</div>
	</form>
</div>
</body>
<script>
    var page=new ListPage();
    page.init();
    //seajs.use("/mcp/hos/finance/js/ListPage.js");
</script>
</html>